package com.sip.interphone.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Classname ChemicalDivisionConfig
 * @Description :
 * @Date 2023/2/13 14:40
 * @Author cfy
 */
@Component
@ConfigurationProperties(prefix = "chemical.division")
public class ChemicalDivisionConfig {
    private String url;
    private String agency;
    private String urlPolice;
    private String appId;
    private String secretKey;
    private String tankUrl;
    private String key;
    private String iv;


    private final Jsa jsa = new Jsa();
    private final Promace promace = new Promace();
    private final Contractor contractor = new Contractor();

    public static class Contractor {
        private String contractor;
        private String contractorPerson;

        public String getContractor() {
            return contractor;
        }

        public void setContractor(String contractor) {
            this.contractor = contractor;
        }

        public String getContractorPerson() {
            return contractorPerson;
        }

        public void setContractorPerson(String contractorPerson) {
            this.contractorPerson = contractorPerson;
        }
    }

    public static class Promace {
        private String promacBaseUrl;
        private String promacBaseUrlResource;
        private String promacBaseUrl1;

        public String getPromacBaseUrl() {
            return promacBaseUrl;
        }

        public void setPromacBaseUrl(String promacBaseUrl) {
            this.promacBaseUrl = promacBaseUrl;
        }

        public String getPromacBaseUrlResource() {
            return promacBaseUrlResource;
        }

        public void setPromacBaseUrlResource(String promacBaseUrlResource) {
            this.promacBaseUrlResource = promacBaseUrlResource;
        }

        public String getPromacBaseUrl1() {
            return promacBaseUrl1;
        }

        public void setPromacBaseUrl1(String promacBaseUrl1) {
            this.promacBaseUrl1 = promacBaseUrl1;
        }
    }


    public static class Jsa {

        /**
         * 作业前安全分析数据同步接口
         */
        private String preJobSecurityAnalysis;
        /**
         * 作业预约数据同步接口
         */
        private String jobAppointment;
        /**
         * 作业任务数据同步接口
         */
        private String jobTasks;
        /**
         * 作业票数据同步接口
         */
        private String jobTickets;
        /**
         * 按批次id查询处理结果接口
         */
        private String queryProcessingResultsByBatch;
        /**
         * 按错误id查询错误详细信息接口
         */
        private String queryTheErrorDetails;

        public String getPreJobSecurityAnalysis() {
            return preJobSecurityAnalysis;
        }

        public void setPreJobSecurityAnalysis(String preJobSecurityAnalysis) {
            this.preJobSecurityAnalysis = preJobSecurityAnalysis;
        }

        public String getJobAppointment() {
            return jobAppointment;
        }

        public void setJobAppointment(String jobAppointment) {
            this.jobAppointment = jobAppointment;
        }

        public String getJobTasks() {
            return jobTasks;
        }

        public void setJobTasks(String jobTasks) {
            this.jobTasks = jobTasks;
        }

        public String getJobTickets() {
            return jobTickets;
        }

        public void setJobTickets(String jobTickets) {
            this.jobTickets = jobTickets;
        }

        public String getQueryProcessingResultsByBatch() {
            return queryProcessingResultsByBatch;
        }

        public void setQueryProcessingResultsByBatch(String queryProcessingResultsByBatch) {
            this.queryProcessingResultsByBatch = queryProcessingResultsByBatch;
        }

        public String getQueryTheErrorDetails() {
            return queryTheErrorDetails;
        }

        public void setQueryTheErrorDetails(String queryTheErrorDetails) {
            this.queryTheErrorDetails = queryTheErrorDetails;
        }
    }

    public Jsa getJsa() {
        return jsa;
    }

    public Contractor getContractor() {
        return contractor;
    }

    public Promace getPromace() {
        return promace;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getAgency() {
        return agency;
    }

    public void setAgency(String agency) {
        this.agency = agency;
    }

    public String getUrlPolice() {
        return urlPolice;
    }

    public void setUrlPolice(String urlPolice) {
        this.urlPolice = urlPolice;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getTankUrl() {
        return tankUrl;
    }

    public void setTankUrl(String tankUrl) {
        this.tankUrl = tankUrl;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getIv() {
        return iv;
    }

    public void setIv(String iv) {
        this.iv = iv;
    }
}
